package nq;

public class Q {
   protected int qx;
   protected int qy;

    public Q(int qx, int qy) {
        this.qx = qx;
        this.qy = qy;
    }
    public Q(){}

    public int getQx() {
        return qx;
    }

    public void setQx(int qx) {
        this.qx = qx;
    }

    public int getQy() {
        return qy;
    }

    public void setQy(int qy) {
        this.qy = qy;
    }
    protected boolean FangZhiQ(int x,int y){
        this.qx = x;
        this.qy = y;
        //判断是否可以放置
        // if(){}


    }

    //棋子攻击范围
    protected void FanWei(Q q){
        //调用修改安全格子方法
    }
}
